var assert = require('assert');
var should = require('should');
var _ = require('lodash');
var techModel = require('../../app/models/techModel');
var config = require('../config');

suite('techModel', function () {
    setup(function (done) {
        techModel.getByRoleId(config.role_id, function (err, model) {
            assert.equal(err == null, true);
            model.toJSON();
            model.save(done);
        });
    });

    suite('tech', function () {
        test('获取玩家科技信息', function (done) {
            techModel.getByRoleId(config.role_id, function (err, model) {
                model.getEffByTechType(1);
                model.getEffByTechType(2);
                model.save();
                assert.equal(err == null, true);
                done();
            });
        });
    });
});
